{include file="public/head"}
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<header class="mui-bar mui-bar-nav report-header box-s" id="header">
			<a href="javascript:history.go(-1)"><i class="iconfont icon-fanhui fl"></i></a>
			<p>选择收货地址</p>
			<span class="fr baocun"></span>			
	    </header>
	    <div id="main" class="mui-clearfix add-address choice-address">
	    	{volist name="data" id="vol"}
	    	<div class="addlist clearfloat" onclick="selectAddress('{$vol.address_id}')">
	    		<div class="top clearfloat box-s">
	    			<ul>
	    				<li>
	    					<span class="fl">{$vol.receive_name}</span>
	    					<span class="fr">{$vol.phone}</span>
	    				</li>
	    				<li>
	    					{if $vol.default=="1"}
	    					<span class="moren">[默认地址]</span>
	    					{/if}
	    					{$vol.community_name}{$vol.room_address}
	    				</li>
	    			</ul>
	    		</div>
	    	</div>
	    	{/volist}
	    </div>
	</body>
	
</html>
<script>
	function selectAddress(t){
		window.location.href="{:url('shop/shopcart')}?shop_id={$shop_id}&address_id="+t;
	}
</script>